Shared libs have traditionally been installed as executables due to
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 16:38:41 +0000 (17:38 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 16:38:41 +0000 (17:38 +0100)
some
long ago accidents of implementation in historical Unixes.  And there
are various tools which "expect" it (... and this is why they get
created as executable by default by ld).

Switching to INSTALL_LIB here although I think the whole "define all
the
ways you're going to use install" in this makefile a _smidge_ overkill

Signed-off-by: Jeremy Katz <katzj@redhat.com>
tools/xenstore/Makefile

index 30b30b3cedab661be6d550aa81d5fd059913360f..d6b143e1c613646bd8cec2911c1590ab9e8c0e99 100644 (file)
@@ -5,6 +5,7 @@ XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
 INSTALL         = install
 INSTALL_DATA   = $(INSTALL) -m0644
 INSTALL_PROG    = $(INSTALL) -m0755
+INSTALL_LIBS    = $(INSTALL) -m0755
 INSTALL_DIR     = $(INSTALL) -d -m0755
 
 PROFILE=#-pg
@@ -171,7 +172,7 @@ install: all
        $(INSTALL_PROG) xenstore-control $(DESTDIR)/usr/bin
        $(INSTALL_PROG) xenstore-ls $(DESTDIR)/usr/bin
        $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR)
-       $(INSTALL_DATA) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
+       $(INSTALL_LIBS) libxenstore.so $(DESTDIR)/usr/$(LIBDIR)
        $(INSTALL_DATA) xs.h $(DESTDIR)/usr/include
        $(INSTALL_DATA) xs_lib.h $(DESTDIR)/usr/include